package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 中国地区信息
 * </p>
 *
 * @author 王鹤蒲
 * @since 2023-08-27
 */
@Getter
@Setter
  @TableName("sys_region_info")
@ApiModel(value = "RegionInfo对象", description = "中国地区信息")
public class RegionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("自增ID")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("代码")
      private String code;

      @ApiModelProperty("名称")
      private String name;

      @ApiModelProperty("简称")
      private String shortName;

      @ApiModelProperty("级别")
      private String level;

      @ApiModelProperty("上级代码")
      private String superiorCode;

      @ApiModelProperty("经度")
      private String lng;

      @ApiModelProperty("纬度")
      private String lat;

      @ApiModelProperty("状态")
      private Integer status;

      @ApiModelProperty("创建时间")
      private LocalDateTime createTime;

      @ApiModelProperty("修改时间")
      private LocalDateTime updateTime;

      @ApiModelProperty("备注")
      private String remark;

      private List<RegionInfo> childrenList;


}
